a11y: Only allow get_name/description when realized
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jun 2023 15:47:59 +0000 (11:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jun 2023 16:38:51 +0000 (12:38 -0400)
commita791f235e632283394cad8f9428d180ab2d8fc66
tree6dc3465b2367ddec6579a1de6779deec0f3e36a8
parent7df9cc1b470d889647fc03ac5a1989bf17a60fc6
a11y: Only allow get_name/description when realized

These functions rely on self->accessible_role
being set, and that is only the case for realized
contexts.

In practice, this is not a problem. Contexts are
realized before ATs can get their names or descriptions,
and the inspector realizes contexts too, nowadays.

The only place where this caused a hickup is the
testsuite.
gtk/gtkatcontext.c